package com.graduation.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 文档标签关联表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("document_tag")
public class DocumentTag {

    // 关联ID
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    // 文档ID
    @TableField("document_id")
    private Long documentId;

    // 标签ID
    @TableField("tag_id")
    private Long tagId;

    // 关联时间
    @TableField("create_time")
    private LocalDateTime createTime;

}